define(function(require, exports, module){
	return {
		getAccessToken: function(){
			if (localStorage.accessToken != undefined) {
				return localStorage.accessToken;
			} else {
				this.notifyAccessTokenExpires();
			}
		},
		updateAccessToken: function(token){
			localStorage.accessToken = token;
		},
		notifyAccessTokenExpires: function(){
			delete localStorage.accessToken;
		}
	};
});